varying vec3 refvec;
uniform samplerCube envmap;

void main()
{
   gl_FragColor = textureCube(envmap,refvec);
}